#ifndef _MYEXCEPTION_H_
#define _MYEXCEPTION_H_

#include <string>
#include "color.h"
 
const std::string INPUT_FILE = red + "Cannot open file : " + white;
const std::string BNFERROR = red + "Error parsing BNF : " + white;
const std::string DOUBLE_DECLARATION = red + "Error redeclaration of variable : " + white;
const std::string NOT_DECLARATION = red + "Error undeclared variable : " + white;
const std::string NOT_INITIALISED = red + "Error uninitialised variable : " + white;

class		MyException: public std::exception
{
public:
  MyException();
  MyException(std::string str);
  ~MyException() throw();
  virtual       const char* what() const throw();
private:
  std::string	_str;
};

#endif /* _MYEXCEPTION_H_ */
